home *** CD-ROM | disk | FTP | other *** search
/ The Macintosh Demo Applications CD / Apple-MacintoshDemoApplicationsCD-1.0-1992.bin / More Information / GQL V3.0 / Open ME! - USA Sales / Open ME! - USA Sales.rsrc / gQRY_21423_Sales by City2 < prev    next >
Text File  |  1992-01-27  |  1KB  |  113 lines

  1. 00012200 0
  2. 88020002 8
  3. customer
  4. 80012201 1
  5. 80012202 0
  6. 88022203 8
  7. customer
  8. __][)(__
  9. 00012200 1
  10. 88020002 5
  11. order
  12. 80012201 1
  13. 80012202 0
  14. 88022203 6
  15. orders
  16. __][)(__
  17. 00012200 2
  18. 88020002 6
  19. placed
  20. 80012201 9
  21. 80012202 0
  22. 88022203 6
  23. placed
  24. __][)(__
  25. 00012300 3
  26. 80010001 0
  27. 88020002 4
  28. City
  29. 88022301 8
  30. customer
  31. 88022302 9
  32. cust_city
  33. 80012303 0
  34. __][)(__
  35. 00012300 4
  36. 80010001 1
  37. 88020002 6
  38. Amount
  39. 88022301 6
  40. orders
  41. 88022302 A
  42. ord_amount
  43. 80012303 0
  44. __][)(__
  45. 00010800 5
  46. 88020002 E
  47. Sales by City2
  48. 80010801 0
  49. 80010802 0
  50. 88020803 C5
  51. select customer.cust_city, AVG (orders.ord_amount) from customer, orders where ((orders.ord_amount >= «amount»)) and customer.cust_num = orders.cust_nr group by customer.cust_city order by 2 desc ;
  52. __][)(__
  53. 00010900 6
  54. 80010001 5
  55. 80010901 0
  56. __][)(__
  57. 00010900 7
  58. 80010001 5
  59. 80010901 1
  60. __][)(__
  61. 00010900 8
  62. 80010001 5
  63. 80010901 2
  64. __][)(__
  65. 00010A00 9
  66. 80010001 5
  67. 80010A01 6
  68. 80010A02 3
  69. 80010A03 1
  70. __][)(__
  71. 00010A00 A
  72. 80010001 5
  73. 80010A01 7
  74. 80010A02 4
  75. 80010A03 2
  76. __][)(__
  77. 00010C00 B
  78. 80010001 5
  79. 80010C01 0
  80. 80010C02 1
  81. 80040C03 92 43 9C 57
  82. __][)(__
  83. 00010D00 C
  84. 80010001 B
  85. 80010D01 7
  86. 80010D02 4
  87. 80010D03 6
  88. 88020D05 8
  89. «amount»
  90. __][)(__
  91. 00010B00 D
  92. 80010001 5
  93. 80010B01 7
  94. 80010B02 8
  95. __][)(__
  96. 00010B00 E
  97. 80010001 5
  98. 80010B01 6
  99. 80010B02 8
  100. __][)(__
  101. 00010F00 F
  102. 80010001 5
  103. 80010F01 7
  104. 80010F02 4
  105. 80010F03 2
  106. __][)(__
  107. 00011000 10
  108. 80010001 5
  109. 80011001 6
  110. 80011002 3
  111. 80011003 0
  112. __][)(__
  113.